﻿@{
    var userStory = ViewData["userStory"] as fKanban.Model.UserStoryEntity;
    if (userStory == null) {userStory = new fKanban.Model.UserStoryEntity();
    }
}
<div class="sprint-add-panel addpanel">
<a href="javascript:;" id="btnClose" class="linkCancel"><img alt="Cancel" src="@Url.Content("~/Images/icon-close.png")" /></a>
<h3>添加冲刺 Add Sprint
</h3>
    <table>
        <tr>
            <td class="form_title" colspan="3">冲刺基本信息 Basic Information</td>
        </tr>
        <tr class="_hidden">
            <td class="add_panel_title">编号 Id</td>
            <td class="add_panel_input"><input type="text" id="Id" readonly value="" /></td>
            <td class="user_story_tips"></td>
        </tr>
        <tr>
            <td class="add_panel_title">冲刺名称 SprintName</td>
            <td class="add_panel_input"><input type="text" id="Name" placeholder="Name"  tabindex="1" /></td>
            <td class="user_story_tips"></td>
        </tr>
        <tr>
            <td>描述 Description</td>
            <td><input type="text" id="Description" placeholder="Description"  tabindex="2" /></td>
            <td class="user_story_tips"></td>
        </tr>
        <tr>
            <td>开始时间 Start Date</td>
            <td><input type="date" id="StartDate" value="@DateTime.Now.ToString("yyyy-MM-dd")" tabindex="4" /></td>
            <td class="user_story_tips"></td>
        </tr>
        <tr>
            <td>结束时间 End Date</td>
            <td><input type="date" id="EndDate" value="@DateTime.Now.AddDays(15).ToString("yyyy-MM-dd")" tabindex="5" /></td>
            <td class="user_story_tips"></td>
        </tr>
        <tr>
            <td class="form_title" colspan="3">团队成员TeamMember</td>
        </tr>
        <tr>
            <td>ProductManager</td>
            <td><input type="text" id="ProductManager" value="@userStory.Owner" readonly tabindex="6" /></td>
            <td class="user_story_tips"><a>UserStory.Owner</a></td>
        </tr>
        <tr>
            <td>ScrumMaster</td>
            <td> <input type="text" id="ScrumMaster" placeholder="ScrumMaster" tabindex="7" /></td>
            <td class="user_story_tips">
                <a href="javascript:;" title="chengzhibing@vancl.com" data-value="ScrumMaster">成志兵</a>
                <a href="javascript:;" title="jiawentao@vancl.com" data-value="ScrumMaster">贾文涛</a>
            </td>
        </tr>
        <tr>
            <td>TestManager</td>
            <td> <input type="text" id="TestManager" placeholder="TestManager" tabindex="8" /></td>
            <td class="user_story_tips">
                <a href="javascript:;" title="huangle@vancl.com" data-value="TestManager">黄乐</a>
            </td>
        </tr>
        <tr>
            <td class="line" colspan="3"></td>
        </tr>
        <tr>
            <td></td>
            <td>
                <input type="button" value="添加新项AddNew" id="btnAddSprint" tabindex="9" /> 
                <img id="loader" src="@Url.Content("~/Images/loader.gif")" />
            </td>
            <td class="user_story_tips"><a href="javascript:;" class="linkCancel">Cancel</a></td>
        </tr>
    </table>
</div>